method

[]

ruby latest stable - Class: YAML::Pairs

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

[]( *vals )
public

No documentation available.

# File lib/yaml/types.rb, line 155
        def self.[]( *vals )
            p = Pairs.new
            0.step( vals.length - 1, 2 ) { |i|
                p[vals[i]] = vals[i+1]
            }
            p
        end